import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)

export default new Vuex.Store({
  state() {
    return {
      mycity: '上海'
    }
  },
  getters: {},
  mutations: {
    toArticle(state, value) {
      state.mycity = value.city
      localStorage.setItem('city', JSON.stringify(value))
    }
  },
  actions: {},
  modules: {}
})
